package com.ojoin.trade.supplyloan_core.web.domain;

import java.util.Date;

import com.ojoin.trade.common.web.domain.IDentifiable;
 
public class TbCatchdataStrategy implements IDentifiable{
	
	/**
	 * 全量抓取  状态值（比如现存库存）
	 */
	
	public final static String CatchAll = "all";// 抓取全部
	
	/**
	 *  全量抓取 生成记录（比如入库记录）
	 */
	public final static String CatchAllPart = "allPart";// 抓取全部
	
	/**
	 *  增量抓取 （比如入库记录）
	 */
	public final static String CatchPart = "part";// 抓取部分

	public final static String inited = "inited";
	public final static String noinit = "noinit";// 抓取部分
	
	
    private Integer id;

    private Integer platformUserId;

    private String isInit = noinit;

    private Integer inventoryFaultTolerantTime = 2 ;

    private Integer paymentFaultTolerantTime = 10 ;

    private Integer inventoryInterval = 90;

    private Integer paymentInterval = 60 ;

    private Integer openingBalances = 0;

    private Integer settlementInterval = 90;
    
    private String inventoryCatchAllOrPart = CatchPart;
    
    private String paymentCatchAllOrPart = CatchAll;
    
    private String supplementaryData = "{}";

    private Date rowUpdateTime;

    private Date rowCreateTime;
    
    /**
     * 计算可贷款金额的方法
     */
    private String loanAmountType;
    
    /**
     * 不减负债额
     */
    public static final String NOALSOLOAN = "Noalsoloan";
    
    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getPlatformUserId() {
		return platformUserId;
	}

	public void setPlatformUserId(Integer platformUserId) {
		this.platformUserId = platformUserId;
	}

	public String getIsInit() {
        return isInit;
    }

    public void setIsInit(String isInit) {
        this.isInit = isInit == null ? null : isInit.trim();
    }

    public Integer getInventoryFaultTolerantTime() {
        return inventoryFaultTolerantTime;
    }

    public void setInventoryFaultTolerantTime(Integer inventoryFaultTolerantTime) {
        this.inventoryFaultTolerantTime = inventoryFaultTolerantTime;
    }

    public Integer getPaymentFaultTolerantTime() {
        return paymentFaultTolerantTime;
    }

    public void setPaymentFaultTolerantTime(Integer paymentFaultTolerantTime) {
        this.paymentFaultTolerantTime = paymentFaultTolerantTime;
    }

    public Integer getInventoryInterval() {
        return inventoryInterval;
    }

    public void setInventoryInterval(Integer inventoryInterval) {
        this.inventoryInterval = inventoryInterval;
    }

    public Integer getPaymentInterval() {
        return paymentInterval;
    }

    public void setPaymentInterval(Integer paymentInterval) {
        this.paymentInterval = paymentInterval;
    }

    public Integer getOpeningBalances() {
        return openingBalances;
    }

    public void setOpeningBalances(Integer openingBalances) {
        this.openingBalances = openingBalances;
    }

    public Integer getSettlementInterval() {
        return settlementInterval;
    }

    public void setSettlementInterval(Integer settlementInterval) {
        this.settlementInterval = settlementInterval;
    }

	public String getSupplementaryData() {
		return supplementaryData;
	}

	public void setSupplementaryData(String supplementaryData) {
		this.supplementaryData = supplementaryData;
	}

	@Override
	public Date getRowUpdateTime() {
		return rowUpdateTime;
	}

	@Override
	public void setRowUpdateTime(Date rowUpdateTime) {
		this.rowUpdateTime = rowUpdateTime;
		
	}

	@Override
	public Date getRowCreateTime() {
		return rowCreateTime;
	}

	@Override
	public void setRowCreateTime(Date rowCreateTime) {
		this.rowCreateTime = rowCreateTime;
		
	}

	@Override
	public String getTableName() {
		return "tb_catchdata_strategy";
	}

	public String getInventoryCatchAllOrPart() {
		return inventoryCatchAllOrPart;
	}

	public void setInventoryCatchAllOrPart(String inventoryCatchAllOrPart) {
		this.inventoryCatchAllOrPart = inventoryCatchAllOrPart;
	}

	public String getPaymentCatchAllOrPart() {
		return paymentCatchAllOrPart;
	}

	public void setPaymentCatchAllOrPart(String paymentCatchAllOrPart) {
		this.paymentCatchAllOrPart = paymentCatchAllOrPart;
	}

	public String getLoanAmountType() {
		return loanAmountType;
	}

	public void setLoanAmountType(String loanAmountType) {
		this.loanAmountType = loanAmountType;
	}

	
	
	
	
}